﻿using System.Linq;
using NUnit.Framework;

namespace FinQ.UnitTests
{
    [TestFixture]
    public class PerfTestOptional
    {
        [Test]
        public void blow_stack_recursive_reduce()
        {
            const long N = 21500;
            const long sumToN = (N * N + N) / 2;
            Assert.AreEqual(sumToN, Enumerable.Range(1, (int)N).Sum());
        }
    }
}
